<?php 

if(!defined('ADMIN')){
	exit('Access Denied');
}


?>
<div class="pageContent">
<form action="index.php?mod=<?=MOD?>&act=<?=ACT?>" method="post" name="form1" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">

<input type="hidden" name="id" value="<?=$row['id']?>" />
<input type="hidden" name="sub" value="save" />
<div class="pageFormContent" layoutH="50">

<p><label>名厨(名店)：</label>
<?=select($shoplist,$row['shop_id'],'shop_id','')?>
</p>
<p><label>账号：</label>
<input name="adminname" type="text" style="width:200px" id="adminname" value="<?=$row['adminname']?>" class="required" />
</p>
<p><label>密码：</label>
<input name="adminpass" style="width:200px" type="password" id="adminpass" value="" <? if(empty($row['id'])){?>class="required"<?}?>  />
</p>
<p><label>权限组：</label>
<?=select($role_arr,$row['role'],'role','style="width:200px"')?>
</p>
<p><label>邮件地址：</label>
<input name="email" style="width:200px" type="text" id="email" value="<?=$row['email']?>"   />
</p>
<p><label>QQ号码：</label>
<input name="qq" style="width:200px" type="text" id="qq" value="<?=$row['qq']?>"   />
</p>
<p><label>手机号码：</label>
<input name="mobile" style="width:200px" type="text" id="mobile" value="<?=$row['mobile']?>"   />
</p>
</table>
</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
</form>
</div>
